package com.springBoot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan("src/main/java/com/springBoot/mapper")
public class Springboot01Application {
	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(Springboot01Application.class, args);
		String applicationName = context.getEnvironment().getProperty("applicationName");
		System.out.println(applicationName);
	}
}
